home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software USA 4 #10
/
Software USA Volume 4.10.iso
/
mac
/
Educational
/
Googolator
/
Inputs
/
nasty.run
< prev
next >
Wrap
Text File
|
1996-09-28
|
1KB
|
55 lines
{ This nasty input file attempts to test most of Googolator's code,
particularly the rarely used parts.
}
'' { produces a blank line }
"BASIC ARITHMETIC:"
"2+3 = "; 2+3
"2-3 = "; 2-3
"2*3 = "; 2*3
"2/3 = "; 2/3
"2^3 = "; 2^3
"2! = "; 2!
''
"THESE EXPRESSIONS ARE SYNTACTICALLY CORRECT:"
"(1) = "; (1)
"((1)) = "; ((1))
"1+2-3*4^5 = "; 1+2-3*4^5
"1+(2-(3*(4^5))) = "; 1+(2-(3*(4^5)))
''
"SYNTACTIC ERRORS:"
"( = "; (
"() = "; ()
"(1+ = "; (1+
"(1+) = "; (1+)
"1+) = "; 1+)
"1) = "; 1)
") = "; )
"(1)) = "; (1))
''
"SEMANTIC ERRORS:"
"1/0 = "; 1/0
"-2^2 = "; -2^2
''
"CORRECT STRINGS:"
'Hello!'
"2^3 = "; 2^3; " and 3^2 = "; 3^2
'' { prints a blank line }
''; { this won't }
"There should be ONE blank line above this sentence."
"This sentence should";'';"";" appear on ";'a';" line by itself."
'This sentence contains "double quotes".'
''
"BAD STRINGS:"
"A string is not allowed to contain an eol token.
'And don't make this mistake!'
''
"RUNNING FILES:"
run test
run empty { empty file }
run nested0 { nested files }
run toomany { infinitely nested files }
{run comment} { file with unfinished comment }
''
"Done. I hope you were watching closely!"